package com.yaoweigroup.community.ui.my;

import com.yaoweigroup.community.R;
import com.yaoweigroup.community.util.VersionUtil;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.TextView;

/**
 * 关于我们
 * 
 * @author xi
 * 
 */
public class AboutActivity extends Activity {

	private RelativeLayout left_rl;
	private TextView name_tv;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about);
		name_tv = (TextView) findViewById(R.id.name_tv);
		try {
			name_tv.setText("版本号："+VersionUtil.getVersionName(this));
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		left_rl = (RelativeLayout) findViewById(R.id.left_rl);
		left_rl.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {

				finish();
			}
		});
	}

}
